package com.sixnimmt.app.shared.game.domain;

import java.io.Serializable;

public enum Card implements Serializable {

	// 1 to 10
	_1(1, 1), _2(2, 1), _3(3, 1), _4(4, 1), _5(5, 2), _6(6, 1), _7(7, 1), _8(8, 1), _9(9, 1), _10(10, 3),
	// 11 to 20
	_11(11, 5), _12(12, 1), _13(13, 1), _14(14, 1), _15(15, 2), _16(16, 1), _17(17, 1), _18(18, 1), _19(19, 1), _20(20,
			3),
	// 21 to 30
	_21(21, 1), _22(22, 5), _23(23, 1), _24(24, 1), _25(25, 2), _26(26, 1), _27(27, 1), _28(28, 1), _29(29, 1), _30(30,
			3),
	// 31 to 40
	_31(31, 1), _32(32, 1), _33(33, 5), _34(34, 1), _35(35, 2), _36(36, 1), _37(37, 1), _38(38, 1), _39(39, 1), _40(40,
			3),
	// 41 to 50
	_41(41, 1), _42(42, 1), _43(43, 1), _44(44, 5), _45(45, 2), _46(46, 1), _47(47, 1), _48(48, 1), _49(49, 1), _50(50,
			3),
	// 51 to 60
	_51(51, 1), _52(52, 1), _53(53, 1), _54(54, 1), _55(55, 7), _56(56, 1), _57(57, 1), _58(58, 1), _59(59, 1), _60(60,
			3),
	// 61 to 70
	_61(61, 1), _62(62, 1), _63(63, 1), _64(64, 1), _65(65, 2), _66(66, 5), _67(67, 1), _68(68, 1), _69(69, 1), _70(70,
			3),
	// 71 to 80
	_71(71, 1), _72(72, 1), _73(73, 1), _74(74, 1), _75(75, 2), _76(76, 1), _77(77, 5), _78(78, 1), _79(79, 1), _80(80,
			3),
	// 81 to 90
	_81(81, 1), _82(82, 1), _83(83, 1), _84(84, 1), _85(85, 2), _86(86, 1), _87(87, 1), _88(88, 5), _89(89, 1), _90(90,
			3),
	// 91 to 100
	_91(91, 1), _92(92, 1), _93(93, 1), _94(94, 1), _95(95, 2), _96(96, 1), _97(97, 1), _98(98, 1), _99(99, 5), _100(
			100, 3),
	// 101 to 104
	_101(101, 1), _102(102, 1), _103(103, 1), _104(104, 1);

	private final int value;
	private final int buffaloHeads;

	private Card(int value, int buffaloHead) {
		this.value = value;
		this.buffaloHeads = buffaloHead;
	}

	@Override
	public String toString() {
		return (value < 10 ? "  " : (value < 100 ? " " : "")) + value + "(" + buffaloHeads + ")";
	}

	public int getValue() {
		return value;
	}

	public int getBuffaloHeads() {
		return buffaloHeads;
	}

}
